<html lang="en">
<head style="height: 100%;">
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <style>
        body {
            padding: 0;
            margin: 0;
        }

        /* 壳子 */
        .shell {
            /* 顶部含电量占90px */
            background: url(./phone.png) no-repeat 50% 20px;
            margin: 0 auto;
            width: 545px;
            padding-top: 20px;
            height: 100%;
            background-size: 414px auto;
            overflow: hidden;
        }

        /*屏幕*/
        .site-preview-layout {
            display: flex;
            justify-content: center;
            flex-direction: column;
            position: relative;
            margin: 0 auto;
            width: 383px;
            padding: 40px 5px;
            height: calc(100% - 140px);
            border-radius: 40px;
            border: 6px solid #dadada;
            box-shadow: 0 10px 32px 0 rgba(0, 0, 0, .1);
            overflow: hidden;
        }

        /*实际显示屏幕*/
        .screen {
            padding-top: 20px;
            width: 100%;
            height: calc(100% - 70px)
        }

        .view {
            height: 180px;
            width: 100%;
            height: 100%
        }

        .button {

            position: absolute;
            bottom: 10px;
            left: 165px;
            width: 60px;
            height: 24px;
            border-radius: 12px;
            border: 3px solid #dadada;
        }
    </style>
</head>
<body style="overflow: hidden;height: 100%;">
<div styl="height: 100%;">
    <div class="shell">
        <div class="site-preview-layout">
            <div class="screen">
                <iframe class="view" src="http://mmhf.sjunjie.cn?redirect=1"></iframe>
            </div>
            <div class="button">

            </div>

        </div>
    </div>

</div>
<script>
    // alert(document.body.clientHeight)
    function IsPC() {
        var userAgentInfo = navigator.userAgent;
        var Agents = ["Android", "iPhone",
            "SymbianOS", "Windows Phone",
            "iPad", "iPod"];
        var flag = true;
        for (var v = 0; v < Agents.length; v++) {
            if (userAgentInfo.indexOf(Agents[v]) > 0) {
                flag = false;
                break;
            }
        }
        return flag;
    }

    // var flag = IsPC(); //true为PC端，false为手机端
    // if (!flag) {
    //     window.location.href = "http://hxw.sjunjie.cn:800"
    // }
</script>
</body>
</html>